﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Arizu.Repository;

namespace AiRiZu
{
    public class ReleaseRoom : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            
            AirizuRoom airizuRoom = AirizuRoom.CreateInstance();

            airizuRoom.UpdateSendState(int.Parse(context.Request.Params["roomId"].ToString()), 1);

            context.Response.ContentType = "text/plain";
            context.Response.Write("success");
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}
